﻿<%@ Control Language="C#" AutoEventWireup="true" CodeFile="SurveyQuestionSelect.ascx.cs"
    Inherits="DesktopModules.Surveys.DesktopModules_Surveys_SurveyQuestionSelect" %>
<script src='<%=ResolveUrl("~/DesktopModules/Surveys/js/CheckGrid.js")%>' type="text/javascript"
    language="javascript"></script>
<link href='<%=ResolveUrl("~/DesktopModules/Surveys/css/el_style.css")%>' />
<div id="easy_main">
    <div class="maskTwoCollum">
        <div class="holderTwoCollum">
            <!-- begin of left content -->
            <div class="leftTwoCollum">
                <div>
                    <!-- Nội dung menuleft -->
                </div>
            </div>
            <!-- end of left content -->
            <!-- begin content center-->
            <div class="mainTwoCollum">
                <%--<div class="easy_path">
                    <a href="#">Tên trang 1</a> > <a href="#">Tên trang 2</a>
                </div>--%>
                <div>
                    <h1 class="titleh1">
                        <!-- Tieu de thong bao cua form-->
                        <asp:Label ID="lblTitlePage" meta:resourcekey="lblTitlePage" runat="server" Text="Danh sách bài Survey"></asp:Label>
                    </h1>
                </div>
                <%--<div class="el_tabtop_padding">
                    <!-- Menu top-->
                    Nếu form có chứa menutop
                </div>--%>
                <div class="easy_info_action" visible="false" runat="server" id="divMessage">
                    <asp:Label ID="lblMessage" CssClass="lbltitleh3" runat="server"></asp:Label>
                </div>
                <div class="easy_box_control_top">
                    <!-- chua cac buttion ở vị trí top -->
                    <asp:Button ID="btnAdd" runat="server" meta:resourcekey="btnCancel" Text="Thêm" OnClick="btnAdd_Click" />
                    <asp:Button ID="btnBack" runat="server" meta:resourcekey="btnBack" Text="Quay lại"
                        OnClick="btnBack_Click" />
                </div>
                <div class="easy_info_action_right">
                    <!-- Phan chu thich vi du các chỗ đánh dau * là không được nhập rỗng-->
                    <asp:Label ID="lblRequired1" CssClass="lbltitleh3" runat="server" Text="<font color='red'>* </font> Không được nhập rỗng"
                        meta:resourcekey="lblRequired"></asp:Label>
                </div>
                <!-- Begin noi dung -->
                <div>
                    <asp:GridView ID="grdQuestion" runat="server" AutoGenerateColumns="False" OnRowCreated="grdQuestion_RowCreated"
                        OnRowDataBound="grdQuestion_RowDataBound">
                        <Columns>
                            <asp:TemplateField HeaderText="" HeaderStyle-HorizontalAlign="Center">
                                <HeaderTemplate>
                                    <asp:CheckBox ID="chkSelect1" runat="server" />
                                </HeaderTemplate>
                                <ItemTemplate>
                                    <asp:CheckBox ID="chkSelect" runat="server" />
                                    <asp:HiddenField ID="hdQuestionID" runat="server" Value='<%#Eval("SQuestionID") %>' />
                                </ItemTemplate>
                                <HeaderStyle HorizontalAlign="Center" Width="40px"></HeaderStyle>
                                <ItemStyle HorizontalAlign="Center" />
                            </asp:TemplateField>
                            <asp:TemplateField HeaderText="Name">
                                <ItemTemplate>
                                    <asp:LinkButton ID="lbtName" CssClass='easy_hyperlink' runat="server" Text='<%#Eval("QuestionContent") %> '
                                        CommandArgument='<%#DataBinder.Eval(Container.DataItem,"SQuestionID")%>' CommandName="editQuestion">
                                    </asp:LinkButton>
                                </ItemTemplate>
                                <ItemStyle HorizontalAlign="Left" Width="200px" CssClass="styleCell" />
                                <HeaderStyle HorizontalAlign="Left" />
                            </asp:TemplateField>
                            <asp:TemplateField HeaderText="Question Type">
                                <ItemTemplate>
                                    <asp:Label ID="lblDescription" runat="server" Text='<%#Eval("QuestionType") %>'></asp:Label>
                                </ItemTemplate>
                                <ItemStyle HorizontalAlign="Left" CssClass="styleCell" />
                                <HeaderStyle HorizontalAlign="Left" />
                            </asp:TemplateField>
                            <asp:TemplateField HeaderText="Status">
                                <ItemTemplate>
                                    <asp:Label ID="lblPublic" runat="server" Text='<%#Eval("Public") %>'></asp:Label>
                                </ItemTemplate>
                                <ItemStyle HorizontalAlign="Center" VerticalAlign="Middle" />
                                <HeaderStyle Width="35px" HorizontalAlign="Center" />
                            </asp:TemplateField>
                        </Columns>
                        <%--<PagerTemplate>
                            <div>
                                <div class="easy_pager_left">
                                    <asp:Label ID="Label1" runat="server" Text="Tổng sô 10/1 trang"></asp:Label>
                                </div>
                                <div class="easy_pager_right">
                                    <div class="easy_width_auto">
                                        <asp:LinkButton ID="lbtPreviousGrdUser" Text="< Prev" CommandName="Page" CommandArgument="Prev"
                                            ToolTip="Previous Page" runat="server" OnClick="lbtPreviousGrdUser_Click" />
                                    </div>
                                    <div class="easy_width_auto_center">
                                        <asp:Menu ID="menuPagerGrdUser" Orientation="Horizontal" CssClass="grdMenu" StaticSelectedStyle-CssClass="selectedPage"
                                            runat="server" OnMenuItemClick="menuPagerGrdUser_MenuItemClick">
                                            <Items>
                                                <asp:MenuItem Text="1" Value="1"></asp:MenuItem>
                                                <asp:MenuItem Text="2" Value="2"></asp:MenuItem>
                                                <asp:MenuItem Text="3" Value="3"></asp:MenuItem>
                                                <asp:MenuItem Text="4" Value="4"></asp:MenuItem>
                                            </Items>
                                            <StaticSelectedStyle CssClass="selectedPage" />
                                        </asp:Menu>
                                    </div>
                                    <div class="easy_width_auto">
                                        <asp:LinkButton ID="lbtNextGrdUser" Text="Next >" CommandName="Page" CommandArgument="Next"
                                            ToolTip="Next Page" runat="server" OnClick="lbtNextGrdUser_Click" />
                                    </div>
                                </div>
                            </div>
                        </PagerTemplate>--%>
                    </asp:GridView>
                </div>
                <!-- end noi dung -->
                <div class="easy_box_control_bottom">
                    <!-- chua cac buttion ở vị trí bottom -->
                    <asp:Button ID="btnAdd1" runat="server" meta:resourcekey="btnCancel" OnClick="btnAdd_Click"
                        Text="Thêm" />
                    <asp:Button ID="btnBack1" runat="server" meta:resourcekey="btnBack" Text="Quay lại"
                        OnClick="btnBack_Click" />
                </div>
                <!-- end of main content -->
            </div>
            <!-- end content center-->
        </div>
    </div>
</div>